import request from '@/utils/request'

// 查询用户统计列表
export function listUserStatistics(query) {
  return request({
    url: '/informfrontend/userStatisticsBack/list',
    method: 'get',
    params: query
  })
}

// 查询用户统计详细
export function getUserStatistics(id) {
  return request({
    url: '/informfrontend/userStatisticsBack/' + id,
    method: 'get'
  })
}

// 新增用户统计
export function addUserStatistics(data) {
  return request({
    url: '/informfrontend/userStatisticsBack',
    method: 'post',
    data: data
  })
}

// 修改用户统计
export function updateUserStatistics(data) {
  return request({
    url: '/informfrontend/userStatisticsBack',
    method: 'put',
    data: data
  })
}

// 删除用户统计
export function delUserStatistics(id) {
  return request({
    url: '/informfrontend/userStatisticsBack/' + id,
    method: 'delete'
  })
}
